﻿@using Whoever.Framework.Enum;

@using Comswing.Website.Models.SwingViewModels;

@model SwingViewModel

<script type="text/html" id="swing-template">
    <div class="row swing-row border-indigo">
        <div class="col-md-4 swing-row-part">
            <div class="form-group">
                <h2><span data-bind="text: SwingType"></span><i class="icon-swing"></i></h2>
                @Html.LocalizedLabelFor(Model => Model.Participants)
                @Html.KOLocalizedHelpFor(Model => Model.Participants, MessageType.Info, "")
                <div class="pull-right">
                    <span data-bind="text: Participants"></span>
                </div>
                <br />
                @Html.LocalizedLabelFor(Model => Model.Prize)
                <div class="pull-right">
                    <i class="fa fa-btc"></i><span data-bind="text: Prize"></span>
                </div>
                <br />
                @Html.LocalizedLabelFor(Model => Model.EntryValue)
                @Html.KOLocalizedHelpFor(Model => Model.EntryValue, MessageType.Info, "")
                <div class="pull-right">
                    <i class="fa fa-btc"></i><span data-bind="text: EntryValue"></span>
                </div>
                <br />
                @Html.LocalizedLabelFor(Model => Model.DivideNumber)
                @Html.KOLocalizedHelpFor(Model => Model.DivideNumber, MessageType.Info, "")
                <div class="pull-right">
                    <span data-bind="text: DivideNumber"></span>
                </div>
                <br />
                @Html.LocalizedLabelFor(Model => Model.StartedDate)
                <div class="pull-right">
                    <span data-bind="text: comswing.Date(StartedDate())"></span>
                </div>
                <br />
                @Html.LocalizedLabelFor(Model => Model.FinishDate)
                <div class="pull-right">
                    <span data-bind="text: comswing.Date(FinishDate())"></span>
                </div>
                <br />
                @Html.LocalizedLabelFor(Model => Model.EntryValueInDollars)
                <div class="pull-right">
                    <i class="fa fa-usd"></i><span data-bind="text: EntryValueInDollars"></span>
                </div>
                <br />
                @Html.LocalizedLabelFor(Model => Model.EntryValueInEuros)
                <div class="pull-right">
                    <i class="fa fa-eur"></i><span data-bind="text: EntryValueInEuros"></span>
                </div>
            </div>
        </div>
        <div class="col-md-4 swing-row-part">
            <div class="form-group">
                <h2><span>@Html.LocalizedText("PrizeDestinyTitle")</span></h2>
                @Html.LocalizedLabelFor(Model => Model.WinnerPercent)
                <div class="pull-right">
                    <span class="symbol">%</span><span data-bind="text: WinnerPercent"></span>
                </div>
                <br />
                @Html.LocalizedLabelFor(Model => Model.OrganizationPercent)
                @Html.KOLocalizedHelpFor(Model => Model.OrganizationPercent, MessageType.Info, "")
                <div class="pull-right">
                    <span class="symbol">%</span><span data-bind="text: OrganizationPercent"></span>
                </div>
                <br />
                @Html.LocalizedLabelFor(Model => Model.ComswingPercent)
                <div class="pull-right">
                    <span class="symbol">%</span><span data-bind="text: ComswingPercent"></span>
                </div>
            </div>
        </div>
        <div class="col-md-4 swing-row-part">
            <div class="form-group">
                <h2><span>@Html.LocalizedText("OrganizationRankingTitle")</span></h2>
            </div>
        </div>
    </div>
</script>
